<div 
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:py="http://genshi.edgewall.org/"
  xmlns:xi="http://www.w3.org/2001/XInclude"
  dojoType="dijit.layout.ContentPane"
  title="${tope.label if tope.show_legend else None}"
  >
  <xi:include href="lib.xml"/>
  ${simple_group(tope, tope.fields)}
</div>
